package com.cug.zfanspring.mapper;

import com.cug.zfanspring.bean.Device;
import com.cug.zfanspring.bean.Factor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface FactorMapper {
    List<Factor> getAlarmFactorData();
    List<Factor> getLatestAlarmFactorData();
    long getFactorNormalNumber(String area);
    long getFactorFaultNumber(String area);
    float getPHValue(String area);
    float getCODValue(String area);
    float getTNValue(String area);
    float getNH3NValue(String area);
    float getTPValue(String area);
    boolean updateFactorData(@Param("factorData")List<Factor> factorData);
    boolean updateLatestFactorData(@Param("factorData") List<Factor> factorData);

}
